package com.thread.test;

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;

public class FutureTask implements Callable<String> {

    @Override
    public String call() throws Exception {
        return "futureTask";
    }

 /*   public static void main(String[] args) throws ExecutionException, InterruptedException {
        java.util.concurrent.FutureTask<String> futureTask = new java.util.concurrent.FutureTask<String>(new FutureTask());

        new Thread(futureTask).start();

        String o = futureTask.get();
        System.out.println(o);

    }*/


}
